<?php
header('content-type:text/html;charset=utf-8');


function news_xinwen(){
    echo '抓取最新新闻';
}
function news_yule(){
    echo '抓取娱乐新闻';
}
function news_tiyu(){
    echo '抓取体育新闻';
}

$type = isset($_GET['type'])?$_GET['type']:'xinwen';

$foo = 'news_'.$type;
$foo();
